class BloodOxygenModel{
  String? oxygen;
  String? plusRate;
  String? resultStr;
  String? resultCode;
  String? remainTime;
  ///0测量中 1测量完成
  String? status;
  int measureTime = 30;

  BloodOxygenModel(
      {this.oxygen,
      this.plusRate,
      this.resultStr,
      this.remainTime = "30",
      this.status,this.measureTime = 30});

  Map<String, dynamic> toMap() {
    return {
      'oxygen': this.oxygen,
      'plusRate': this.plusRate,
      'resultStr': this.resultStr,
      'remainTime': this.remainTime,
      'status': this.status,
    };
  }

  factory BloodOxygenModel.fromMap(Map<String, dynamic> map) {
    return BloodOxygenModel(
      oxygen: map['oxygen'] as String,
      plusRate: map['plusRate'] as String,
      resultStr: map['resultStr'] as String,
      remainTime: map['remainTime'] as String,
      status: map['status'] as String,
    );
  }

  @override
  String toString() {
    return toMap().toString();
  }
}